/*
 * Copyright © 2016-2017 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

@first-column-width: 258px;
@second-column-width: 192px;
@third-column-width: 55px;
@fourth-column-width: 53px;

my-post-run-actions {
  .well.well-sm {
    cursor: pointer;
    margin-bottom: 0;
    padding: 0;
    border: 0;
    background: #ebebeb;
    border-radius: 0;
    h1 {
      padding-bottom: 7px;
    }
    &.empty-table {
      background: transparent;
      border: 2px dashed #b1b1b1;
      margin: 10px;
      &.disabled {
        padding: 10px;
        cursor: not-allowed;
      }
    }
  }
  .table {
    &.table-bordered {
      table-layout: fixed;
      margin: 0;

      tbody {
        display: block;
        overflow: auto;

        /* 192px = 32px (height of row) * 6 */
        max-height: 192px;
      }

      tr {
        width: 100%;
        display: table;
      }

      th,
      td {
        font-size: 14px;
        padding: 5px;

        &:first-child {
          width: @first-column-width;
        }

        &:nth-child(2) {
          width: @second-column-width;
        }

        &:nth-child(3) {
          width: @third-column-width;
        }

        &:last-child {
          width: @fourth-column-width;
        }
      }
    }
  }
}
